package com.google.shop.product.vo.product.detailVO;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
import java.util.Arrays;
//import org.apache.commons.configuration.tree.DefaultExpressionEngine;

/* loaded from: app.jar:BOOT-INF/classes/com/google/shop/product/vo/product/detailVO/DetailSkuVO.class */
public class DetailSkuVO {
    String spuName;
    Integer freight;
    @JsonProperty("num")
    Integer buyNum;
    @JsonProperty("price")
    String skuPrice;
    @JsonProperty("icon")
    String spuHomeImageOrSkuS1Image;
    BigDecimal amount;
    String[] skuTag;

    public void setSpuName(String spuName) {
        this.spuName = spuName;
    }

    public void setFreight(Integer freight) {
        this.freight = freight;
    }

    @JsonProperty("num")
    public void setBuyNum(Integer buyNum) {
        this.buyNum = buyNum;
    }

    @JsonProperty("price")
    public void setSkuPrice(String skuPrice) {
        this.skuPrice = skuPrice;
    }

    @JsonProperty("icon")
    public void setSpuHomeImageOrSkuS1Image(String spuHomeImageOrSkuS1Image) {
        this.spuHomeImageOrSkuS1Image = spuHomeImageOrSkuS1Image;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public void setSkuTag(String[] skuTag) {
        this.skuTag = skuTag;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof DetailSkuVO)) {
            return false;
        }
        DetailSkuVO other = (DetailSkuVO) o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$freight = getFreight();
        Object other$freight = other.getFreight();
        if (this$freight == null) {
            if (other$freight != null) {
                return false;
            }
        } else if (!this$freight.equals(other$freight)) {
            return false;
        }
        Object this$buyNum = getBuyNum();
        Object other$buyNum = other.getBuyNum();
        if (this$buyNum == null) {
            if (other$buyNum != null) {
                return false;
            }
        } else if (!this$buyNum.equals(other$buyNum)) {
            return false;
        }
        Object this$spuName = getSpuName();
        Object other$spuName = other.getSpuName();
        if (this$spuName == null) {
            if (other$spuName != null) {
                return false;
            }
        } else if (!this$spuName.equals(other$spuName)) {
            return false;
        }
        Object this$skuPrice = getSkuPrice();
        Object other$skuPrice = other.getSkuPrice();
        if (this$skuPrice == null) {
            if (other$skuPrice != null) {
                return false;
            }
        } else if (!this$skuPrice.equals(other$skuPrice)) {
            return false;
        }
        Object this$spuHomeImageOrSkuS1Image = getSpuHomeImageOrSkuS1Image();
        Object other$spuHomeImageOrSkuS1Image = other.getSpuHomeImageOrSkuS1Image();
        if (this$spuHomeImageOrSkuS1Image == null) {
            if (other$spuHomeImageOrSkuS1Image != null) {
                return false;
            }
        } else if (!this$spuHomeImageOrSkuS1Image.equals(other$spuHomeImageOrSkuS1Image)) {
            return false;
        }
        Object this$amount = getAmount();
        Object other$amount = other.getAmount();
        if (this$amount == null) {
            if (other$amount != null) {
                return false;
            }
        } else if (!this$amount.equals(other$amount)) {
            return false;
        }
        return Arrays.deepEquals(getSkuTag(), other.getSkuTag());
    }

    protected boolean canEqual(Object other) {
        return other instanceof DetailSkuVO;
    }

    public int hashCode() {
        Object $freight = getFreight();
        int result = (1 * 59) + ($freight == null ? 43 : $freight.hashCode());
        Object $buyNum = getBuyNum();
        int result2 = (result * 59) + ($buyNum == null ? 43 : $buyNum.hashCode());
        Object $spuName = getSpuName();
        int result3 = (result2 * 59) + ($spuName == null ? 43 : $spuName.hashCode());
        Object $skuPrice = getSkuPrice();
        int result4 = (result3 * 59) + ($skuPrice == null ? 43 : $skuPrice.hashCode());
        Object $spuHomeImageOrSkuS1Image = getSpuHomeImageOrSkuS1Image();
        int result5 = (result4 * 59) + ($spuHomeImageOrSkuS1Image == null ? 43 : $spuHomeImageOrSkuS1Image.hashCode());
        Object $amount = getAmount();
        return (((result5 * 59) + ($amount == null ? 43 : $amount.hashCode())) * 59) + Arrays.deepHashCode(getSkuTag());
    }

//    public String toString() {
//        return "DetailSkuVO(spuName=" + getSpuName() + ", freight=" + getFreight() + ", buyNum=" + getBuyNum() + ", skuPrice=" + getSkuPrice() + ", spuHomeImageOrSkuS1Image=" + getSpuHomeImageOrSkuS1Image() + ", amount=" + getAmount() + ", skuTag=" + Arrays.deepToString(getSkuTag()) + DefaultExpressionEngine.DEFAULT_INDEX_END;
//    }

    public String getSpuName() {
        return this.spuName;
    }

    public Integer getFreight() {
        return this.freight;
    }

    public Integer getBuyNum() {
        return this.buyNum;
    }

    public String getSkuPrice() {
        return this.skuPrice;
    }

    public String getSpuHomeImageOrSkuS1Image() {
        return this.spuHomeImageOrSkuS1Image;
    }

    public BigDecimal getAmount() {
        return this.amount;
    }

    public String[] getSkuTag() {
        return this.skuTag;
    }
}
